<%include pub/head.html%>
</head>
  <body id="body">
    <%include pub/nav.html%>
    <div class="home-p pages-head1 text-center">
      <div class="container">
        <h1>在线课程</h1>
        <p>自主学习课堂</p>
      </div>
    </div>
    <div class="portfolio section xu-mian-panel" id="portfolio" style="padding-top: 50px;">
    	<div class="container">
    		<div class="row">
            <div class="col-lg-12">
            <%if(lessonlist){%>
            <%if(locals.user && locals.user.status == 3){%>
            <%for(let i=0; i < lessonlist.length; i++){%>
            <div class="lessons-list-div">
                <a href="/lessons/content/<%- lessonlist[i]._id%>">
                    <div class="lessons-cover-img">
                        <img src="/img/videocover/<%- lessonlist[i].covers %>">
                    </div>
                    <p class="lessons-list-title"><%- lessonlist[i].title %></p>
                    <p class="lessons-list-views"><%- lessonlist[i].looks %>次播放</p>
                </a>
            </div>
            <%}}else{%>
            <%for(let i=0; i < lessonlist.length; i++){%>
            <%if(lessonlist.isopen !== 1){%>
            <div class="lessons-list-div">
                <a href="/lessons/content/<%- lessonlist[i]._id%>">
                    <div class="lessons-cover-img">
                        <img src="/img/videocover/<%- lessonlist[i].covers %>">
                    </div>
                    <p class="lessons-list-title"><%- lessonlist[i].title %></p>
                    <p class="lessons-list-views"><%- lessonlist[i].looks %>次播放</p>
                </a>
            </div>
            <%}}}%>
            <%}%>
    		</div>
        </div>
    	</div>
    </div>
    <%include pub/foot.html%>
    <%include pub/script.html%>
  </body>
</html>